#pragma once
#include "notifystatic.h"

#include "cvxBoard.h"


// CExtractCorner dialog

class CExtractCorner : public CDialog
{
	DECLARE_DYNAMIC(CExtractCorner)

public:
	CExtractCorner(CWnd* pParent = NULL);   // standard constructor
	virtual ~CExtractCorner();

	//added
	void addImage(IplImage *rgbImage, CvxBoard *board);
	void setPts(vector<Point2f> *pts);
	void enableSetPts(){m_setPts = true;};
	
// Dialog Data
	enum { IDD = IDD_EXTRACT_CORNER };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	// get corner from user interface
	CNotifyStatic m_cornerPic;
	CvSize m_imageSize;
	virtual BOOL OnInitDialog();
	bool m_setPts;                   //whether can set points
};
